﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Data;
using WyUnity.Data.Query;

namespace WyUnity.Data.TableMapper
{
	/// <summary>
	/// 代表一个可映射到数据库表的对象
	/// </summary>
	public interface ITable : IMapObject
	{
		Columns ToColumns();
		WhereClip GetPrimaryKeyWhereClip();

		string GetTableName();

		ReadOnlyCollection<FieldDefine> DefineColumns { get; }
	}
}
